﻿<!--{template header}-->
  <!--{eval $adlist = $this->fromcache("adlist");}-->

        <!--文章和问题-->
        <div class="all-work-list">
            <div class="work-list-box shadow" style="background: #fff; margin-right: 2px;">
                <div id="top_content" class="dm bm ">
                    <div class="top_left">
                        <!--[diy=diy1]--><div id="diy1" class="area"><div id="framehKjczZ" class="frame move-span cl frame-1"><div id="framehKjczZ_left" class="column frame-1-c"><div id="framehKjczZ_left_temp" class="move-span temp"></div><div id="portal_block_11" class="block move-span"><div id="portal_block_11_content" class="dxb_bc" style="position: relative;"><div class="vk_slide slidebox" id="0.6036968997130301" style="display: block;">
                       
                       <div class="weekarticles">
                         <!--{eval $weektopiclist = $this->fromcache("weektopiclist");}-->
                          <div class="weekarticles_right">
                            <!--{loop $weektopiclist $index $weektopic}-->
                             {if $index==0}
                         <a href="{url topic/getone/$weektopic['id']}" target="_blank"> <img src="{$weektopic['image']}"  alt="{$weektopic['title']}">
                          <span>{$weektopic['title']}</span></a>
                           {/if}
                          <!--{/loop}-->
                          </div>
                          <div class="weekarticles_left">
                            <div class="weekhotarticles">
                               
                                          <!--{loop $weektopiclist $index $weektopic}-->
                                          {if $index>0&&$index<9}
                            <p class="news">
                                • <a href="{url topic/getone/$weektopic['id']}" target="_blank" title="{$weektopic['title']}" >{$weektopic['title']}</a>
                            </p>
                            {/if}
                               <!--{/loop}-->
                           
                        </div>
                          </div>
                       </div>
                       
                    </div>
                  
                    </div></div></div></div></div><!--[/diy]-->
                        <div class="slideshow"></div>
                        <!-- 推荐群组 -->
                        <div class="group_block">
                            <dl class="hot_group">
                                <dt class="hot_group_title">最新标签</dt>
                                  <!--{eval $newtaglist = $this->fromcache("newtaglist");}-->
                                          <!--{loop $newtaglist $index $newtag}-->
                                          {if $index<10}
                                <dd><a href="{url tags/view/$newtag['tagalias']}" target="_blank" title="{$newtag['tagname']}">{$newtag['tagname']}</a></dd>
                      {/if}
                       <!--{/loop}-->
                            </dl>
                            <dl class="hot_group commend_group">
                                <dt class="commend_group_title">热门标签</dt>
                                    <!--{eval $hosttaglist = $this->fromcache("hosttaglist");}-->
                              
                                          <!--{loop $hosttaglist $index $hottag}-->
                                          {if $index<10}
                                            <dd><a href="{url tags/view/$hottag['tagalias']}" target="_blank"title="{$hottag['tagname']}">{$hottag['tagname']}</a></dd>

                      {/if}
                       <!--{/loop}-->
                            </dl>
                        </div>
                        <div class="slideshow"></div>
                        <!-- 最新主题 -->
                        <div class="threads">
                                 <!--{eval $newtopiclist = $this->fromcache("topiclist");}-->
                                          <!--{loop $newtopiclist $index $newtopic}-->
                            <p class="news">
                                • <a href="{url topic/getone/$newtopic['id']}" target="_blank" title="{$newtopic['title']}" >{$newtopic['title']}</a>
                            </p>
                               <!--{/loop}-->
                            <p class="more_link" style="width:589px;">
                                <a href="{url topic/default}" target="_blank">查看更多</a>
                            </p>
                        </div>
                    </div>
                    <div class="top_right">
                        <h2 class="section_title">
                            <a href="news" target="_blank">一周热点</a>
                            <span class="y section_cate">
                                    <!--{eval $hotwords = $this->fromcache("hotwords");}-->
                                      <!--{loop $hotwords $index $hotword}-->
                                      {if $index<4}
            <a href="{url question/search}?word={$hotword['w']}" target="_blank">{$hotword['w']}</a>
             {/if}
             <!--{/loop}-->

          </span>
                        </h2>
                        <!-- 一周热点问题 -->
                        <div id="newslist">
                                   <!--{eval $attentionlist = $this->fromcache("attentionlist");}-->
                                          <!--{loop $attentionlist $index $question}-->
                                          
                            <p class="news">
                                <span>• {eval echo date('d',$question['time']);}日</span>
                                <a href="{url question/view/$question['id']}" target="_blank" title="{$question['title']}" class="{if $question['views']>300}commend{/if}">{$question['title']}</a>        </p>
                           <!--{/loop}-->
                            <p class="more_link" style="width:90%;">
                                <a href="{url new/default}" target="_blank">查看更多</a>
                            </p>
                        </div>
                    </div>
                    <div class="slideshow"></div>
                </div>
            </div>
        </div>
        <div class="pageturning ">

        </div>
         <!--{if (isset($adlist['index']['middle1']) && trim($adlist['index']['middle1']))}-->
        <div class="advlong-bottom">
            <div class="advlong-default">
                     
        <div>{$adlist['index']['middle1']}</div>
    
            </div>
        </div>
    <!--{/if}-->
        <!--站内动态和关注动态-->
        <div class="all-work-list ">
            <div class="work-list-box ">
                <div class="row index_doinglist">
                    <div class="col-md-15">
                        <div class="subnav-content-wrap" id="tab_anchor" style="height: 56px;">
                            <div class="subnav-wrap" style="left: 0px;">
                                <div class="top-hull">
                                    <div class="subnav-contentbox" style="width: 500px;">
                                        <div class="tab-nav-container">
                                            <ul class="subnav-content text-center">
                                            {if $user['uid']}
                                             <li id="course-li" class=""><a href="{url doing/default}" class="title" >关注动态</a></li>
                                            
                                              
                                               {else}
                                                 <li id="course-li" class="current"><a href="{url doing/default/all}" class="title" >全站动态</a></li>
                                               
                                               {/if}
                                               
                                            </ul>
                                            <div>



                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="ws-mod ws-explore-list doingblock">
                            <div class="mod-body">
                                <div class="ws-common-list">
                                   <!--{eval $doinglist=$this->fromcache('doinglist');}-->
                                    <!--{loop $doinglist $doing}-->
                                    <div class="ws-item active" data-topic-id="295,">
                                       <!--{if $doing['hidden'] }-->
                                        <a class="ws-user-name hidden-xs"  href="javascript::void(0);" rel="nofollow">
                                        <img src="{SITE_URL}static/css/default/avatar.gif" alt="匿名">
                                        </a>
                                         <!--{else}-->
                                            <a class="ws-user-name hidden-xs"  href="{url user/space/$doing['authorid']}" rel="nofollow">
                                        <img src="{$doing['avatar']}" alt="">
                                        </a>
                                          <!--{/if}-->	
                                        <div class="ws-question-content">
                                        
                                        <h4>
                                            <a href="{$doing['url']}">{$doing['content']}</a>					</h4>
                                        <a href="{$doing['url']}" class="pull-right text-color-999">回复</a>

                                        <p>
                                            <a class="ws-question-tags" href="{url category/view/$doing['cid']}">{$doing['categoryname']}</a>
                                            • 	
                                             <!--{if $doing['hidden'] }-->	
                                           					  <a href="javascript::void(0);" rel="nofollow" class="ws-user-name">匿名用户</a>
                                            							
                                           
                                            	    <!--{else}-->
                                            	      <a href="{url user/space/$doing['authorid']}" class="ws-user-name">{$doing['author']}</a>
                                            	
                                            	         <!--{/if}-->	
                                            			<span class="text-color-999">{$doing['actiondesc']} • {$doing['attentions']}  人关注 • {$doing['answers']} 个回复 • {$doing['views']} 次浏览 • {$doing['doing_time']}				</span>
                                            <span class="text-color-999 related-topic collapse"> • 来自相关话题</span>
                                        </p>

                                    </div>
                                    </div>

                               <!--{/loop}-->
                         
                                </div>

                            </div>

                            <p class="more_link" >
                                <a href="{url doing/default}" target="_blank">查看更多</a>
                            </p>
                        </div>
                    </div>
                    <!--左侧问答-->
                    <div class="col-md-7 aside" style="margin-top: 0px;padding-top:10px;background: #fff;">
                        <div class="board">
                            <a target="_blank" href="{url download/default}">
                                <img src="{SITE_URL}static/images/down.jpg" alt="Banner s 3"></a>
                            <a target="_blank" href="https://www.whatsns.com/buy/">
                                <img src="{SITE_URL}static/images/buy.jpg" alt="Banner s 4"></a>

                        </div>
                        <a id="downloadapp" class="col-xs-8 download"  title="下载app">
                            <img class="qrcode" src="{SITE_URL}static/images/apps.png" alt="Download index side qrcode">
                            <div class="info">
                                <div class="title">下载WHATSNS手机App<i class="fa fa-angle-right mar-ly-1"></i></div>
                                <div class="description">数万站长在线和您交流建站经验</div>
                            </div>
                          <div class="popover fade top in" role="tooltip"  style="display:none;top: -160px; left: 48px;"><div class="arrow" style="left: 50%;"></div><h3 class="popover-title" style="display: none;"></h3><div class="popover-content"><img src="{SITE_URL}static/images/apps.png" alt="Download index side qrcode"></div></div>
                         
                        </a>
                        <div class="clear"></div>
                         <div class="lfrecommend">
                            <div class="title">
  
   <span  class="title_text">站长顶置</span>
      <span class="morelink">
    
    </span>
   </div>
      <ul class="list">

    <!--{eval $topdatalist=$this->fromcache('topdata');}-->
                <!--{loop $topdatalist $index  $topdata}-->
                {eval  ++$index;}
   <li>

   <span {if $index==1} class="labeltop"{/if} {if $index==2} class="labelsec"{/if}>{$index}</span>
   
   <a target="_self" class="li-a-title" title="{$topdata['title']}" href="{$topdata['url']}" >
 {$topdata['title']}
   </a>

   </li>



  <!--{/loop}-->
      </ul>
                        </div>
                        
                              <div class="clear"></div>
                              
                 <div class="lfrecommend">
      
       {if $setting['openwxpay']==1}
                             <div class="title">
  
   <span  class="title_text">悬赏抢答</span>
      <span class="morelink">
    
    </span>
   </div>
         <ul class="list">

    <!--{eval $shangjinlist=$this->fromcache('shangjinlist');}-->
                <!--{loop $shangjinlist  $question}-->
              
   <li>

   <span  class="labeltop" >{$question['shangjin']}元</span>
   
   <a target="_self" class="li-a-title" title="{$question['title']}" href="{url question/view/$question['id']}" >
 {$question['title']}
   </a>

   </li>



  <!--{/loop}-->
      </ul>
      
   {else}
                         <div class="title">
  
   <span  class="title_text">等待解答</span>
      <span class="morelink">
    
    </span>
   </div>
      <ul class="list">
    <!--{eval $nosolvelist=$this->fromcache('nosolvelist');}-->
  <!--{loop $nosolvelist $index $question}-->
  {if $index<16}
   <li>


   <a target="_self" class="li-a-title" title=" {$question['title']}" href="{url question/view/$question['id']}" >
   {$question['title']}
   </a>

   </li>
   {/if}



  <!--{/loop}-->
      </ul>
   {/if}
   </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="pageturning ">

        </div>

        <!--专家-->
        <div class="subnav-content-wrap" id="tab_anchor" style="height: 56px; ">
            <div class="subnav-wrap" style="left: 0px;">
                <div class="top-hull">
                    <div class="subnav-contentbox">
                        <div class="tab-nav-container">
                            <ul class="subnav-content text-center">
                                <li id="course-li" class="current"><a href="{url expert/default}" class="title" >热门专家</a></li>

                            </ul>
                            <div>



                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--热门专家列表-->
        <div class="mod-b-wrapper">
            <div class="mod-bd">
                <ul class="trip-list">
                <!--{eval $expertlist=$this->fromcache('expertlist');}-->
                <!--{loop $expertlist $expert}-->
                    <li class="index-userwrap">
                        <a href="{url user/space/$expert['uid']}" target="_self" class="avatar">
                            <img src="{$expert['avatar']}" class="avatarPic lazy" alt="katray" title="katray" style="display: inline;">
                            <span class="icons">
    
    </span>
                        </a>
                        <div class="box">
                            <a class="name" href="{url user/space/$expert['uid']}" target="_self"><span>{$expert['username']}</span>{if
$expert['author_has_vertify']!=false}<i class="fa fa-vimeo v_person   " data-toggle="tooltip" data-placement="right" title="" data-original-title="认证用户"></i>{/if}</a>
                            <p class="intro"><span>{$expert['signature']}</span></p>
                            <div class="achievement">
                                <a class="innerBox" target="_self"><span>{$expert['answers']}</span><i>回答</i></a>
                                <div class="separate"></div>
                                <a class="innerBox" target="_self"><span>{$expert['supports']}</span><i>获赞</i></a>
                                <div class="separate"></div>
                                <a class="innerBox" target="_self"><span>{$expert['followers']}</span><i>粉丝</i></a>
                            </div>
                            <div class="btns">
                              {if $user['uid']}
                                <a href="{url question/add/$expert['uid']}" class="tiwen-btn" target="_self">向他提问</a>
                          
                           {else}
                            <a href="javascript:login()" class="tiwen-btn" target="_self">向他提问</a>
                          
                           {/if}
                            </div>
                        </div>
                    </li>
                      <!--{/loop}-->
                </ul>
            </div>
        </div>

        <div class="pageturning ">

        </div>
         <!--{if (isset($adlist['index']['middle2']) && trim($adlist['index']['middle2']))}-->
        <div class="advlong-bottom">
            <div class="advlong-default">
                  
        <div>{$adlist['index']['middle2']}</div>
      
              
            </div>
        </div>
          <!--{/if}-->
        <!--话题-->
        <div class="subnav-content-wrap" id="tab_anchor" style="height: 56px;">
            <div class="subnav-wrap" style="left: 0px;">
                <div class="top-hull">
                    <div class="subnav-contentbox">
                        <div class="tab-nav-container">
                            <ul class="subnav-content text-center">
                                <li id="course-li" class="current"><a href="{url category/viewtopic/hot}" class="title" >推荐话题</a></li>

                            </ul>
                            <div>



                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
<!--话题列表-->
        <div class="all-work-list hotexpertlist">
            <div class="work-list-box">

        <!--{eval $categorylist=$this->fromcache('categorylist');}-->
                <!--{loop $categorylist $index $category1}-->
                <div class="card-box">
                    <div class="card-img">
                        <a href="{url category/view/$category1['id']}" class="card-img-hover" title=" {$category1['name']}" >
                            <img src="{$category1['bigimage']}" title="{$category1['name']}" alt="">
                        </a>
                    </div>
                    <div class="card-info">
                        <p class="card-info-title">
                            <a href="{url category/view/$category1['id']}" title="{$category1['name']}" class="title-content"  style="width: 178px;"> {$category1['name']}</a>


                        </p>


                        {if $category1['miaosu']}
                        <p class="card-info-type" title="{eval echo clearhtml($category1['miaosu']);}">{eval echo clearhtml($category1['miaosu']);}</p>
                         
                         {else}
                          <p class="card-info-type" title="">该话题暂无描述</p>
                         
                         {/if}


                        <p class="card-info-item">

                            <span class="statistics-view" title="共448人气">448</span>
                            <span class="statistics-comment" title="共{$category1['questions']}讨论">{$category1['questions']}</span>
                            <span class="statistics-collect" title="共{$category1['followers']}关注">{$category1['followers']}</span>

                        </p>
                    </div>

                </div>
                    <!--{/loop}-->

            </div>
        </div>
        <div class="pageturning ">

        </div>
         <!--{if (isset($adlist['index']['middle3']) && trim($adlist['index']['middle3']))}-->
        <div class="advlong-bottom">
            <div class="advlong-default">
                     
        <div>{$adlist['index']['middle3']}</div>
    
            </div>
        </div>
    <!--{/if}-->

        <!--首页推荐-->
        <div class="subnav-content-wrap" id="tab_anchor" style="height: 56px;">
            <div class="subnav-wrap" style="left: 0px;">
                <div class="top-hull">
                    <div class="subnav-contentbox">
                        <div class="tab-nav-container">
                            <ul class="subnav-content text-center">
                                <li id="course-li" class="current"><a href="{url topic/hotlist}" class="title" z-st="home_tab_home">首页推荐</a></li>
                                <li id="forum-li"><a href="{url topic/default}" class="title" target="_blank" z-st="home_tab_lastest">最新文章</a></li>
                                <li id="data-li"><a href="{url new/default}" class="title" target="_blank" z-st="home_tab_rise">最新问题</a></li>
                            </ul>
                            <div>



                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

       <!--文章列表-->
        <div class="all-work-list">
            <div class="work-list-box">
              <!--{eval $topiclist=$this->fromcache('hottopiclist');}-->
                 <!--{loop $topiclist $nindex $topic}-->
                <div class="card-box">
                    <div class="card-img">
                        <a href="{url topic/getone/$topic['id']}" class="card-img-hover" title="{$topic['title']}" >
                            <img src="{$topic['image']}" title="{$topic['title']}" alt="">
                        </a>
                    </div>
                    <div class="card-info">
                        <p class="card-info-title">
                            <a href="{url topic/getone/$topic['id']}" title="{$topic['title']}" class="title-content"  style="width: 178px;">{$topic['title']}</a>


                        </p>



                        <p class="card-info-type" title="{$topic['describtion']}">{$topic['describtion']}</p>



                        <p class="card-info-item">

                            <span class="statistics-view" title="共{$topic['views']}人气">{$topic['views']}</span>
                            <span class="statistics-comment" title="共{$topic['articles']}评论">{$topic['articles']}</span>
                            <span class="statistics-collect" title="共{$topic['likes']}收藏">{$topic['likes']}</span>

                        </p>
                    </div>
                    <div class="card-item">
        <span class="user-avatar showMemberCard">
            <a href="{url user/space/$topic['authorid']}" title="{$topic['author']}" >
            <img src="{$topic['avatar']}"  width="30" height="30" alt="">
         {$topic['author']}

        </a>


        </span>

                        <span class="time" >{eval echo date('m-d H:s',$topic['sortime']);}</span>
                    </div>
                </div>
               
                <!--{/loop}-->
              
                <!--分割-->
            </div>

        </div>
        <!--推荐列表结束-->
   <!--{if (isset($adlist['index']['middle4']) && trim($adlist['index']['middle4']))}-->
        <div class="advlong-bottom">
            <div class="advlong-default">
                     
        <div>{$adlist['index']['middle4']}</div>
    
            </div>
        </div>
    <!--{/if}-->
    </div>

<script src="{SITE_URL}static/css/widescreen/js/slider.js"></script>
<script>

    $(function(){
    	 $("#downloadapp").hover(
                 function()
                 {
                   
                     $(this).find(".popover").css({"display":"block"});
                     },
                     function()
                     {
                         $(this).find(".popover").css({"display":"none"});
                         }
                     );
        /*-- 轮播图开始 --*/
        if ($.fn.unslider) {
            $('.banner').unslider({
                autoplay: true,
                arrows: true,
                speed: 500,
                delay: 3500,
                infinite: true,
                fluid: true
            })
        }

        $('.slider').hover(function (event) {
            event.stopPropagation()
            $(this).parents().children().find('.next,.prev').show()
        }, function () {
            $(this).parents().children().find('.next,.prev').hide()
        })

        var onoff = false;



    })

</script>
    <!--{template footer}-->